import { requestClient, buildGetUrl } from '#/api/request';
/**
 * 获取列表
 */
export async function queryLifeList(params) {
  return requestClient.get<string[]>(buildGetUrl('/life/list', params));
}

/**
 * 新增房租信息
 */
export async function insertLife(data) {
  return requestClient.post<any>('/life', data);
}

/**
 * 删除房租信息
 */
export async function deleteLife(id: string) {
  return requestClient.delete<any>(`/life?id=${id}`);
}

/**
 * 新增房租信息
 */
export async function updateLife(data) {
  return requestClient.put<any>('/life', data);
}
